package com.lry.basic.redis;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.Scanner;

public class BioClient1 {
    public static void main(String[] args) throws IOException {
         Socket socket = new Socket();
         socket.connect(new InetSocketAddress("localhost",9999));
         Scanner scanner = new Scanner(System.in);
         while(true){
             String next = scanner.next();
             socket.getOutputStream().write(next.getBytes());
         }
    }
}